@import 'node_modules/@tencent/wmu2/dist/wmu.less';
@import './fonts.less';

html,body{
    background: #fff;
}
::-webkit-scrollbar {
    width: 0;
}
[v-cloak] {
    display: none;
}

// rem 
@baseWidth: 375px;
@baseFont: 20px;

@bps: 375px, 400px, 414px, 480px; 

.loop(@i: 1) when (@i < length(@bps)) {
    //注意less数组是从1开始的
    @bp: extract(@bps, @i);
    @font: @bp/@baseWidth*@baseFont;
    @media only screen and (min-width: @bp) {
        html {
            font-size: @font !important;
        }
    }
    .loop((@i + 1));
}
;
.loop;

@primaryColor: #28b1cd;

body{
    .weui-btn{
        background-color: @primaryColor;
        width: 315/20rem;
        font-size: 17/20rem;
    }

    a{
        color: @primaryColor;
    }
}